public class MovieTicket {
    private double price;
    private Discount testDicount;
    public MovieTicket() {}

    public void setPrice(double price) {
        this.price = price;
    }

    public void setDiscount(Discount testDicount) {
        this.testDicount = testDicount;
    }

    public double getPrice(){
        return testDicount.calculate(price);
    }
}
